package com.yt.controller;

import com.yt.service.SendProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Classname MessageController
 * @Description
 * @Date 2021/10/25 10:54
 * @Create by 杨涛
 */
@RestController
public class MessageController {
    @Resource
    SendProvider sendProvider;

    @GetMapping("/sendmesage")
    public String sendMessage(){
        sendProvider.send();
        return "消息已发送";
    }
}
